//
//  SongsAuditionList.m
//  NewMusic
//
//  Created by dllo on 15/11/12.
//  Copyright © 2015年 Going. All rights reserved.
//

#import "SongsAuditionListModel.h"

@implementation SongsAuditionListModel
-(instancetype)initWithDictionary:(NSDictionary *)dictionary {
    self = [super init];
    if (self ) {
        [self setValuesForKeysWithDictionary:dictionary];
    }
    return self;
}
-(void)setValue:(id)value forUndefinedKey:(NSString *)key {
    if ([key isEqualToString:@"id"]) {
        self.ID = [NSString stringWithFormat:@"%@", value];
    }else if ([key isEqualToString:@"url"]) {
        self.urlString = value;
    }
}
-(void)setValue:(id)value forKey:(NSString *)key {
    if ([key isEqualToString:@"bitRate"]) {
        self.bitRate = [NSString stringWithFormat:@"%@", value];
    }else if ([key isEqualToString:@"duration"]) {
        self.duration = [NSString stringWithFormat:@"%@", value];
    }else if ([key isEqualToString:@"size"]) {
        self.size = [NSString stringWithFormat:@"%@", value];
    }else if ([key isEqualToString:@"songId"]){
        self.songId = [NSString stringWithFormat:@"%@", value];
    }else if ([key isEqualToString:@"videoId"]){
        self.videoId = [NSString stringWithFormat:@"%@", value];
    }else {
        [super setValue:value forKey:key];
    }
}
@end
